package com.hst.capacity.domain.model.response.setting.price;

import com.hst.capacity.domain.model.entity.setting.line.CityLineEntity;
import com.hst.capacity.domain.model.entity.setting.line.IntercityLineEntity;
import com.hst.capacity.domain.model.entity.setting.price.IntercityPriceEntity;
import lombok.Data;

@Data
public class IntercityPriceVO {

    private Integer idPrice;
    private String idLine;
    private String idFranchisee;
    private int idVehicleType;
    private String idServiceType;
    private Float servicePrice;
    private Float charteredCarPrice;
    private Integer charteredCarSeat;
    private Integer maxServiceMileage;
    private Float exceedingMileagePrice;
    private Integer maxWaitingTime;
    private Float waitingTimePrice;
    private Float expressWayPrice;
    private Integer calculationType;
    private Integer highSpeedBudgetFlag;
    private String memo;
    private Float carrierPrice;

    private String idCityLine;
    private String idRelationLine;
    private String cityLineName;
    private String intercityLineAlias;
    private String intercityLineName;

    public IntercityPriceVO(IntercityPriceEntity priceEntity, IntercityLineEntity lineEntity, CityLineEntity cityLineEntity) {

        this.idPrice = priceEntity.getIdIntercityLinePrice();
        this.idFranchisee = priceEntity.getIdFranchisee();
        this.idVehicleType = priceEntity.getIdVehicleType();
        this.idServiceType = priceEntity.getIdServiceType();

        this.servicePrice = priceEntity.getServicePrice();
        this.charteredCarPrice = priceEntity.getCharteredCarPrice();
        this.charteredCarSeat = priceEntity.getCharteredCarSeat();
        this.maxServiceMileage = priceEntity.getMaxServiceMileage();
        this.exceedingMileagePrice = priceEntity.getExceedingMileagePrice();
        this.maxWaitingTime = priceEntity.getMaxWaitingTime();
        this.waitingTimePrice = priceEntity.getWaitingTimePrice();
        this.expressWayPrice = priceEntity.getExpressWayPrice();
        this.calculationType = priceEntity.getCalculationType();
        this.highSpeedBudgetFlag = priceEntity.getHighSpeedBudgetFlag();
        this.carrierPrice = priceEntity.getCarrierPrice();

        this.idLine = priceEntity.getIdLine();
        this.idRelationLine = lineEntity.getIdRelationLine();
        this.intercityLineName= lineEntity.getIntercityLineName();
        this.intercityLineAlias= lineEntity.getIntercityLineAlias();
        this.memo= lineEntity.getMemo();

        this.idCityLine = cityLineEntity.getIdCityLine();
        this.cityLineName = cityLineEntity.getCityLineName();

    }

}
